%1 %2  
ver|find "5.">nul&&goto :st  
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :st","","runas",1)(window.close)&&exit  
   
:st  
copy "%~0" "%windir%\system32\"  
  
if "%3" == "h" goto :BEGIN  
mshta vbscript:createobject("wscript.shell").run("""%~dp0%%~nx0"" goto :st h",0)(window.close)&&exit  
  
:BEGIN


@echo off & setlocal enabledelayedexpansion

set JAVA_HOME=G:\jdk1.7.0_80
set PATH=%JAVA_HOME%\bin;%PATH%
set INCLUDE=%JAVA_HOME%\include;%JAVA_HOME%\include\win32;%VC_HOME%\include;%INCLUDE%
set LIB=%JAVA_HOME%\lib;%LIB%
set CLASSPATH=%JAVA_HOME%\lib\tools.jar

set LIB_JARS=""
set IMAGE=""
cd lib
if ""%1"" == ""debug"" goto debug
for %%i in (*) do set LIB_JARS=!LIB_JARS!;..\lib\%%i
for %%i in (*) do set IMAGE = !IMAGE!; ..\image\%%i
cd ..\bin

java -classpath ;%LIB_JARS% com.lei.start.Tip
goto end

:debug
java -Xms64m -Xmx1024m -XX:MaxPermSize=64M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -classpath ;%LIB_JARS% com.lei.start.Tip
goto end

:end
pause